package m.jclecai.com.bean;

import java.util.Map;

/**
 * Created by zed on 2018/3/19.
 * 以后作为所有的数字菜单实体
 */

public class LotteryNumberMenuBean extends LotteryMenuBean {
    //每行的小球数目
    private int itemLineCount;
    //展示可供选择数字的行数 例如1 展示一行 2 展示2行
    private int itemCount;
    //integer 行的下标 Map<Integer,BallItem> Integer是该行第几个球下表标 BallItem 球的状态
    private Map<Integer, Map<Integer, BallItem>> selectBall;
    //小球是否从0开始 true是 false否 默认从0开始
    private boolean startByZero = true;
    //选择球的个数
    private int selectBallCount;
    //注数
    private long number;
    //允许，分隔符分隔开每个球 默认允许分割
    private boolean allowSplit = true;

    public LotteryNumberMenuBean() {
    }

    public LotteryNumberMenuBean(int menuId, String menuName, int itemCount, int itemLineCount) {
        super(menuId, menuName);
        this.itemLineCount = itemLineCount;
        this.itemCount = itemCount;
    }

    public LotteryNumberMenuBean(int menuId, String menuName, int itemCount, int itemLineCount, boolean startByZero) {
        super(menuId, menuName);
        this.itemLineCount = itemLineCount;
        this.itemCount = itemCount;
        this.startByZero = startByZero;
    }

    public LotteryNumberMenuBean(int menuId, String menuName, int itemCount, int itemLineCount, boolean startByZero, int selectBallCount) {
        super(menuId, menuName);
        this.itemLineCount = itemLineCount;
        this.itemCount = itemCount;
        this.startByZero = startByZero;
        this.selectBallCount = selectBallCount;
    }

    public LotteryNumberMenuBean(int menuId, String menuName, int itemCount, int itemLineCount, int selectBallCount) {
        super(menuId, menuName);
        this.itemLineCount = itemLineCount;
        this.itemCount = itemCount;
        this.selectBallCount = selectBallCount;
    }

    public LotteryNumberMenuBean(int menuId, String menuName, int itemCount, int itemLineCount, boolean startByZero, int selectBallCount, boolean allowSplit) {
        super(menuId, menuName);
        this.itemLineCount = itemLineCount;
        this.itemCount = itemCount;
        this.startByZero = startByZero;
        this.selectBallCount = selectBallCount;
        this.allowSplit = allowSplit;
    }

    public int getItemLineCount() {
        return itemLineCount;
    }

    public void setItemLineCount(int itemLineCount) {
        this.itemLineCount = itemLineCount;
    }

    public int getItemCount() {
        return itemCount;
    }

    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }

    public Map<Integer, Map<Integer, BallItem>> getSelectBall() {
        return selectBall;
    }

    public void setSelectBall(Map<Integer, Map<Integer, BallItem>> selectBall) {
        this.selectBall = selectBall;
    }

    public boolean isStartByZero() {
        return startByZero;
    }

    public void setStartByZero(boolean startByZero) {
        this.startByZero = startByZero;
    }

    public LotteryNumberMenuBean clone() {
        LotteryNumberMenuBean o = null;
        try {
            o = (LotteryNumberMenuBean) super.clone();
        } catch (CloneNotSupportedException e) {
            System.out.println("MyObject can't clone");
        }
        return o;
    }

    public int getSelectBallCount() {
        return selectBallCount;
    }

    public void setSelectBallCount(int selectBallCount) {
        this.selectBallCount = selectBallCount;
    }

    public long getNumber() {
        return number;
    }

    public void setNumber(long number) {
        this.number = number;
    }

    public boolean isAllowSplit() {
        return allowSplit;
    }

    public void setAllowSplit(boolean allowSplit) {
        this.allowSplit = allowSplit;
    }
}
